# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit autotools

DESCRIPTION="GTK based GUI for xneur"
HOMEPAGE="http://www.xneur.ru/"
SRC_URI="http://dists.xneur.ru/release-${PV}/tgz/${P}.tar.bz2"

LICENSE="GPL-2"

IUSE="nls"
SLOT="0"

KEYWORDS="x86 ~amd64"

RDEPEND=">=x11-apps/xneur-0.9.0
	>=x11-libs/gtk+-2.0.0
	>=sys-devel/gettext-0.16.1
	>=gnome-base/libglade-2.6.0
	!x11-apps/kxneur"
DEPEND="${RDEPEND}
	>=dev-util/pkgconfig-0.20"

src_unpack() {
unpack ${A}
	cd "${S}"
	eautoreconf
}

src_compile() {
    XNEUR_CFLAGS="${CFLAGS}" econf $(use_enable nls) || die "configure failed"
    emake || die "emake failed"
}

src_install() {
    emake install DESTDIR="${D}" || die "emake install failed"
    dodoc AUTHORS ChangeLog NEWS
    make_desktop_entry "${PN}" "${PN}" ${PN} "GTK;Gnome;Utility;TrayIcon"
}
